package listTest;

public class Test {



    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();

        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.display();

        myArrayList.add(2,5);

        myArrayList.display();

        System.out.println(myArrayList.contains(4));
        System.out.println(myArrayList.indexOf(5));
        System.out.println(myArrayList.get(3));
        myArrayList.set(0, 99);
        myArrayList.display();

        myArrayList.remove(99);
        myArrayList.display();

        myArrayList.clear();
        myArrayList.display();
    };
}
